var fanMessage = {
    init:function(){
        var that = this;
        that.Region();
        that.bindEvent();
    },
    bindEvent:function(){
        var that = this;
    },
    Region:function(){
    	var that = this;
    	var chart = $('#container').highcharts({
    		chart: {
    			//zoomType: 'xy',
    			spacingTop:0,
    			spacingRight:0,
    			spacingBottom:0,
    			spacingLeft:0
    		},
            title: {
                text: '',
            },
            subtitle: {
                text: '',
            },
            legend: {
                enabled:false
            },
            credits:{enabled:false},
            xAxis: {
            	labels: {
            		rotation: -45   //45度倾斜
            	},
                categories: ['平均分', '最高分', '最低分', '平均标准分', '最高标准分', '最低标准分']
            },
            yAxis: {
            	min : 0,
            	labels: {
            		//rotation: -90   //45度倾斜
            	},
                title: {
                    text: '分数'
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            },
            legend: {
            	layout : 'horizontal',
            	shadow : true
            },
            tooltip: {
                valueSuffix: '分'
            },
            series: [{
                name: '2014年02月',
                data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5]
            }, {
                name: '2014年03月',
                data: [0.8, 5.7, 11.3, 100.0, 22.0, 24.8]
            }, {
                name: '2014年04月',
                data: [0.6, 3.5, 8.4, 13.5, 17.0, 18.6]
            }, {
                name: '2014年05月',
                data: [3.9, 4.2, 5.7, 68.5, 11.9, 15.2]
            }]
        });
    	
    	that.regionChar = chart;
    },
    refresh:function(){
        var that=this;
        that.Region();
    }
};

$(function(){
    fanMessage.init();
});